package com.hhp.cloud.shop.common.web.exception;

import com.hhp.cloud.shop.common.core.enums.BizCodeEnume;
import lombok.Getter;

/**
 * @Description:
 * @author: hhp
 * @date: 2021/11/18 17:22
 */
@Getter
public class BizException extends RuntimeException {

    public BizCodeEnume bizCodeEnume;

    public BizException(BizCodeEnume bizCodeEnume) {
        super(bizCodeEnume.getMsg());
        this.bizCodeEnume = bizCodeEnume;
    }

    public BizException(String message){
        super(message);
    }

    public BizException(String message, Throwable cause){
        super(message, cause);
    }

    public BizException(Throwable cause){
        super(cause);
    }
}
